class clusters::fail2ban {

  package { 'fail2ban':
    ensure  => 'installed',
    require  => Yumrepo['site'],
  }->
  file {'/etc/fail2ban/jail.d/sshd.conf':
      mode    =>  '0644',
      owner   =>  'root',
      group   =>  'root',
      source  =>  "puppet:///modules/${module_name}/sshd.conf",
  } ~>
  service {'fail2ban':
        ensure     => 'running',
        enable     => 'true',
        hasrestart => true,
  }
}
